Skip to content

Conversation

helenul
Copy link
Member

@helenul helenul commented Nov 22, 2026

The avatars, the plant owner test pictures and the plant placeholder are converted from PNG to WebP, with the effect measured and documented.

  • Avatars and placeholder: lossy WebP at quality 85, with no visible difference
  • Plant owner test pictures: lossless WebP, since lossy WebP became larger than the PNG for these simple drawings
  • Same file names and folders, only the extension is changed. All imports, and the placeholder in PlantCard.css, point to the new files

Measured effect

PNG WebP Change
All 15 pictures in the app 395 kB 156 kB −60 %
Profile page, pictures (8) 260 kB 84 kB −68 %
Profile page, everything transferred 444 kB 268 kB −40 %

Measured on the build (npm run build) and on the Profile page with the avatar chooser open (DevTools, Network, cache disabled).

Documentation

  • quality.md: "Pictures in WebP" under sustainable web development, with the table above
  • README: the base64 plant images from the database under known issues

@helenul helenul self-assigned this Nov 22, 2026
@helenul helenul requested a review from a team as a code owner November 22, 2026 19:53
@helenul helenul linked an issue Nov 22, 2026 that may be closed by this pull request
4 tasks
Copy link
Member

@alexajah alexajah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

se kommentarer, og husk å oppdatere arkitektur diagrammet

@helenul helenul requested a review from alexajah November 23, 2026 08:08
Copy link
Member

@alexajah alexajah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good after updates!

@helenul helenul merged commit 50dbf05 into main Nov 23, 2026
0 of 4 checks passed
@helenul helenul deleted the 157-convert-images-to-webp branch November 23, 2026 08:55
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert images to WebP
2 participants